--- 战斗主类
---
--- @class HeroFightLog
HeroFightLog = ClientFight.CreateClass("HeroFightLog")
local this = HeroFightLog
--- @public
--- @return HeroFightLog
function this:ctor()
    self.heroId = 0;
    --怪物模板编号*/
    self.monsterTempleteId = 0;
    --出战次数*/
    self.fightTimes = 0;
    --胜场次数*/
    self.winIimes = 0;
    --战斗数据*/
    self.fightStatisticsMap = {};
end
function this:addFightStatistics(type, change)
    local oldVal = self:getFightStatisticsVal(type);
    self.fightStatisticsMap[type] = oldVal + change;
end

function this:getFightStatisticsVal(type)
    local val = self.fightStatisticsMap[type];
    if val == nil then
        return 0;
    end
    return val;
end